-- CALC_ORC_ENERGY_ADD_VALUE

-- 计算兽人斗士恢复的能量
return function(target)
    local curHp = target:queryAttrib("hp");
    local maxHp = target:queryAttrib("max_hp");

    local addValue;
    local permillage = FormulaM.invoke("CALC_BIG_DIVISION", curHp, 1000, maxHp);
    if permillage >= 650 then
        addValue = 3;
    elseif permillage >= 300 and permillage < 650 then
        addValue = 4;
    else
        addValue = 6;
    end

    return addValue;
end